package com.balabala.gym_user.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 何涛
 * @Date: 2023/04/30/ 15:15
 * @description token相关信息
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user_token")
public class Token implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String pcToken;
    private String wxToken;
    private String appToken;
    private String refreshToken;
    private String openId;
    private Long userId;
    private Date lastLoginTime;
    private String lastLoginIp;
    private Date createTime;
    private Date refreshTokenExpire;
}
